﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using DXApplicationTangche.UC.项目流程.流程UC;
using DevExpress.XtraBars.Ribbon;
using DevExpress.XtraBars;
using DXApplicationTangche.UC.样品管理.样品订单预览;

namespace DXApplicationTangche.UC.项目流程
{
    public partial class Form流程门户 : DevExpress.XtraEditors.XtraForm
    {
        private XtraUserControl任务相关信息 uc任务相关信息;// uc任务相关信息
        private XtraUserControl成果物 uc成果物;//uc成果物
        private XtraUserControl关联任务 uc关联任务;//uc关联任务

        public Form流程门户(String id,String wbsTemplateId,String orderId,String code)
        {
            InitializeComponent();
            //把4个uc绑到form
            this.uc任务相关信息 = new XtraUserControl任务相关信息(wbsTemplateId, orderId,code);
            this.uc任务相关信息.Dock = DockStyle.Fill;
            this.xtraTabPage任务信息.Controls.Clear();
            this.xtraTabPage任务信息.Controls.Add(this.uc任务相关信息);

            this.uc成果物 = new XtraUserControl成果物();
            this.uc成果物.Dock = DockStyle.Fill;
            this.xtraTabPage成果物.Controls.Clear();
            this.xtraTabPage成果物.Controls.Add(this.uc成果物);

            this.uc关联任务 = new XtraUserControl关联任务(id);
            this.uc关联任务.Dock = DockStyle.Fill;
            this.panel关联任务.Controls.Clear();
            this.panel关联任务.Controls.Add(this.uc关联任务);
        }

    }
}